package com.brillilab.service.core.elsearch;

import java.util.List;

import org.springframework.data.domain.Page;

import com.brillilab.domain.pa.kit.SampleSearchPa;
import com.brillilab.domain.po.elsearch.EsSample;

/**
 * ES样品搜索Service
 * @author lj
 *
 */
public interface IEsSampleService {
	
	/**
	 * 根据kitId查询
	 * @param kitId
	 * @return
	 */
	EsSample queryById(Long kitId);

	/**
	 * 单个样品保存
	 * @param eb
	 * @return
	 */
	EsSample save(EsSample eb);

	/**
	 * 样品批量保存
	 * @param esKits
	 * @return
	 */
    Boolean batchSeve(List<EsSample> esKits);
    
    /**
     * 样品高级搜索
     * @param pa
     * @return
     */
    Page<EsSample> queryList(SampleSearchPa pa);
    
}
